package com.hao.imserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import com.hao.imserver.websocketserver.WebSocketServer;

@SpringBootApplication
public class ImServerApplication {

	public static void main(String[] args) {
	    ConfigurableApplicationContext applicationContext =  SpringApplication.run(ImServerApplication.class, args);
	    WebSocketServer.setApplicationContext(applicationContext);
	}
}
